<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>添加留言</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<link href="/sbm/css/screen.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/sbm/ckeditor/ckeditor.js"></script>
<script language="javascript">
	function mycheck() {
		if (myform.title.value == "") {
			alert("留言标题不能为空！！");
			myform.title.focus();
			return false;
		}
	}
</script>

</head>

<body>
	<s:form action="modifynote" method="post" enctype="multipart/form-data"
		name="myform">
		<table width="600px" align="center" class="class1">
			<tr>
				<td colspan="3" align="right"><span class="title">修改留言</span></td>
			</tr>
			<tr>
				<td width="10%">&nbsp;</td>
				<td>
					<table>
						<tr>
							<td>留言名称</td>
							<td><s:textfield name="note.title" id="title" />
								<s:hidden name="note.noteid" />
							</td>
						<tr>
						<tr>
							<td>&nbsp;&nbsp;留<br>&nbsp;&nbsp;言<br>&nbsp;&nbsp;内<br>&nbsp;&nbsp;容</td>
							<td><s:textarea name="note.text" width="40%" rows="15"
									 id="text" />
									<script type="text/javascript">
						CKEDITOR.replace('text');
						</script>
							</td>
						</tr>
						<tr>
							<td>上传文件</td>
							<td><s:file name="image" label="请选择文件"></s:file></td>
						</tr>
						<tr>
							<td>&nbsp;</td>
							<td>&nbsp;&nbsp;&nbsp;&nbsp;<input name="提交"
								type="submit" value="确 认" onClick="return mycheck();" /></td>
						</tr>
						<tr>
							<td colspan="2" align="right"><a href="showallnote">返回查看所有留言</a>
							</td>
						</tr>
						<tr>
							<td height="35" colspan="2" class="top_hui_text" align="center"
								colspan="2"><span class="errorAndmes"><s:actionerror
										cssStyle="font-family: Arial,Helvetica,sans-serif" /> </span>
							</td>
						</tr>
					</table></td>
				<td width="30%">&nbsp;</td>
		</table>
	</s:form>
</body>
</html>
